<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
		<script src="https://www.momentjs.com.cn/downloads/moment.js" type="text/javascript" charset="utf-8"></script>
		<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
	</head>
	<body>
		<div id="app">
			<button type="button" @click="findAll">按钮发送axios的get请求</button>
		</div>
	</body>
	<script type="text/javascript">
		var vm = new Vue({
			el:"#app",
			data:{
				
			},
			created() {
				
			},
			methods:{
				findAll(){
					axios.get("./data.json",{}).then(function(res){
						console.log(res.data)
					}).catch(function(err){
						console.log(err)
					})
				}
			}
		})
	</script>
</html>
